package com.g7.figmaapi.web.api.listener.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author: taoxiangqian
 * @explain: 监听事件
 * @since: 2023/10/30 09:13
 */
@Getter
public class WebApiCallBackEvent extends ApplicationEvent {
    private String channelType;

    private String eventType;

    private String key;

    /**
     * 清除redis
     */
    public static final String EVENT_TYPE_CLEAR_REDIS = "CLEAR_REDIS";

    public WebApiCallBackEvent(Object source, String channelType, String eventType, String key) {
        super(source);
        this.channelType = channelType;
        this.eventType = eventType;
        this.key = key;
    }
}
